This XFCN can sort up to 500 lines with a maximum length of 255 characters per line. Note that this takes up quite a bit of memory, so you may get some sort of error if you try to sort a giant container when you are low on memory. Specify whether you want to sort in "ascending" order or "descending" order, and the sort method, which can be "BubbleSort" or "QuickSort". Note also that the Quicksort is faster but doesn't seem to do as a reliable of job as the bubble sort. In other words, use bubblesort as much as possible. If you have something more than 500 lines, and plenty o' memory, contact me, and I can recompile it for ya. All I have to do is change a constant from 500 to whatever you want.
-- part contents for background part 23
----- text -----
put xsort(card field "booga","ascending","bubblesort") into cd fld "booga"